//
// Created by 51165 on 2025/9/12.
//
#include <stdio.h>
#include <math.h>
int main() {
    int a = - 10;
    scanf("%d",&a);
    int b = sqrt(a * a) ;
    printf("%d\n", b / 10 % 10);
}
